<template>
 <div>
     <h2>
         新闻详情
     </h2>
 </div>
</template>

<script>
export default {
    data(){
         return{}
    },
    created(){
        console.log(this.$route.params.id)
        // ajax
    },
    methods:{},
    components:{},
    // 动态路由参数更新时
    beforeRouteUpdate(to,from,next) {
        console.log('动态路由参数更新')
        next()
    }
}

</script>
<style scoped>
</style>